package com.ncs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncs.pojo.Menu;
import com.ncs.service.MenuService;
import com.ncs.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【menu】的数据库操作Service实现
* @createDate 2022-09-05 14:33:14
*/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>
    implements MenuService{

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> showAll() {
//        List<Menu> list = menuMapper.showAll();
//        QueryWrapper<Menu> wrapper = new QueryWrapper<>(null);
//        List<Menu> list1 = menuMapper.selectList(wrapper);
        return menuMapper.showAll();
    }
}




